package demo2;

public class StudentTest {
    public static void main(String[] args) {
//        类名  对象名 = new 类名();
        Student stu = new Student();
//        对象.属性名 = 值;
        stu.setName("Li");
        stu.setAge(19);
        stu.show();

        Student student = new Student("Li",19);
        student.show();
    }
}
